home *** CD-ROM | disk | FTP | other *** search
- Command Name : Ask
-
- Function : Ask for a yes or no response form user
-
- Arguments : [<prompt>
-
- Location : Kickstart ROM
-
- If you include the line Ask <question> in your startup-sequence, the
- computer will wait for a yes or no answer from the user. Y, N, y, n, Yes,
- No, no etc. are all included. If the answer is Yes then a warn situation is
- reported. You can test for this like so :
-
- Ask "Yes or No?"
- If warn
- echo "Yes"
- (This is the yes script)
- Else
- echo "No"
- (This is the no script)
- EndIf
-
- Don't forget to terminate If blocks with an EndIf instruction!
-